package generator;

public class TranslatorTypes {

	public static String translateType(String oclType) {
		if(oclType.equalsIgnoreCase("boolean")){ return "Boolean";} else
		if(oclType.equalsIgnoreCase("real")){ return "Number";} else
		if(oclType.equalsIgnoreCase("integer")){ return "int";} else
		if(oclType.equalsIgnoreCase("void")){ return "void";} else
		if(oclType.contains("Set")){ return oclType.replace("Set", "Vector.");}
		return oclType;
	}
}
